lunomobs:register_mob("lunomobs:areinite", {
	mob_name="AREINITE",
	type = "monster",
	hp_max = 5, --Padrão = 3
	xp_give = 5,
	collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
	visual = "mesh",
	mesh = "mobs_sand_monster.x",
	textures = {"mobs_sand_monster.png"},
	visual_size = {x=8,y=8},
	makes_footstep_sound = true,
	view_range = 15,
	walk_velocity = 1.5,
	run_velocity = 2.5,
	walk_percent = 70,  --Probabilidade dele ficar andando. Varia de 0 ~ 100% do tempo
	damage = 3,
	drops={ 
		{name="default:sand", chance=1, min=1, max=5,}, 
	},
	light_resistant = true,
	armor = 100,
	drawtype = "front",
	water_damage = 10,
	lava_damage = 10,
	light_damage = 0,
	shadow_damage = 0,
	attack_type = "dogfight",
	animation = {
		speed_normal = 15,
		speed_run = 30,
		stand_start = 0,
		stand_end = 39,
		walk_start = 41,
		walk_end = 72,
		run_start = 74,
		run_end = 105,
		punch_start = 74,
		punch_end = 105,
	},
	sounds={ random = "mobs_skull_cartoon", attack="obj_chew", hit="mobs_sand_hit", die="sword_2", },
	--sounds={ random="mobs_sand_stand", attack="sword_2", hit="mobs_sand_hit", die="mobs_shout", },
})

--lunomobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height, spawn_func)
lunomobs:register_spawn("lunomobs:areinite", {"default:desert_sand", "default:sand"}, 20, -1, 7000, 4, 31000)

minetest.register_craftitem("lunomobs:areinite", {
	description = "Areinite",
	groups = { mobs=1 },
	inventory_image = "mob_areinite.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			minetest.env:add_entity(pointed_thing.above, "lunomobs:areinite")
			if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
		end
		return itemstack
	end,
})

minetest.register_alias("areinite"	, "lunomobs:areinite")
